package biz.impl;

import java.util.List;

import dao.TopicDao;
import dao.impl.TopicDaoImpl;
import entity.Topic;
import biz.TopicBiz;

public class TopicBizImpl implements TopicBiz{
	private TopicDao topicDao=new TopicDaoImpl();

	public Topic findTopic(int topicid) {
		return topicDao.findTopic(topicid);
	}
	public List<Topic> findListTopic(int page, int boardid) {
		return topicDao.findListTopic(page, boardid);
	}
	public int addTopic(Topic topic) {
		return topicDao.addTopic(topic);
	}
	public int deleteTopic(int topicid) {
		return topicDao.deleteTopic(topicid);
	}
	public int updateTopic(Topic topic) throws Exception {
		return topicDao.updateTopic(topic);
	}
	public int findCountTopic(int boardId) {
		return topicDao.findCountTopic(boardId);
	}
}
